<{extend name="public/layout"}>

<{block name="content"}>
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1>管理员管理</h1>
                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="<{:url('/admin/index/index')}>">首页</a></li>
                        <li class="breadcrumb-item"><a href="<{:url('/admin/auth.auser/index')}>">管理员 </a></li>
                        <li class="breadcrumb-item"><a href="<{:url('/admin/auth.auser/login_log')}>">登录记录 </a></li>
                    </ol>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="container-fluid">


            <div class="card">
                <div class="card-header">
                    <form action="<{:url()}>">
                        <div class="form-row ">
                            <div class="col-auto">
                                <input name="keyword" type="text"  class="form-control " placeholder="登录账号搜索" value="<{$Request.param.keyword?$Request.param.keyword:''}>">
                            </div>

                            <div class="col-auto">
                                <button type="submit" class="btn btn-primary mb-2 "><i class="fas fa-search"></i></button>
                                <a  onclick="location.reload()"  class="btn btn-default mb-2 bs-left-30" title="重置"><i class="fas fa-history"></i></a>
                            </div>
                        </div>
                    </form>
                </div>
                <!-- /.card-header -->
                <div class="card-body">
                    <a class="btn btn-success btn-sm " href="<{:url('/admin/auth.auser/index')}>"><i class="fas fa-arrow-circle-left"></i>返回</a>
                    <table id="my_table" class="table table-bordered table-striped">
                        <thead>
                        <tr>
                            <td>账号</td>
                            <th>登录时间</th>
                            <th>IP</th>
                        </tr>
                        </thead>
                        <tbody>
                        <{if !empty($data)}>
                        <{foreach $data as $item}>
                        <tr>
                            <td>
                                <{if !empty($item.user)}>
                                账号：<{$item.user.account}> <br>
                                昵称：<{$item.user.user_name}>
                                <{else}>
                                <span class="bs-red">已删除</span>
                                <{/if}>
                            </td>
                            <td><{$item.add_time}></td>
                            <td><{$item.ip}></td>
                        </tr>
                        <{/foreach}>
                        <{/if}>



                        </tbody>

                    </table>
                </div>
                <div class="card-footer">
                    <{$page?$page->render():''}>
                </div>
                <!-- /.card-body -->
            </div>
        </div>
    </section>
    <!-- /.content -->
</div>
<{/block}>
